package com.tian.producer;

import org.springframework.stereotype.Component;

/**
 * {@code @description:} TODO
 *
 * @author tianwc 公众号：Java后端技术全栈
 * 在线刷题 1200+java面试题和1000+篇技术文章：<a href="https://woaijava.cc/">博客地址</a>
 * {@code @date:} 2024/1/26 17:33
 * {@code @version:} 1.0
 */
@Component
public class Producer {
   /* @Resource
    private AmqpTemplate rabbitTemplate;

    public void send(IncomeMessage incomeMessage) {
        System.out.println("Sender msg : " + JSON.toJSON(incomeMessage));
        rabbitTemplate.convertAndSend(RabbitMQConstant.INCOME_EXCHANGE, RabbitMQConstant.INCOME_ROUTING_KEY, incomeMessage);
    }
    public void send(InvitedRecordMessage invitedRecordMessage) {
        System.out.println("Sender msg : " + JSON.toJSON(invitedRecordMessage));
        rabbitTemplate.convertAndSend(RabbitMQConstant.INVITED_RECORD_EXCHANGE, RabbitMQConstant.INVITED_RECORD_ROUTING_KEY, invitedRecordMessage);
    }*/
}
